export default {
  namespaced: true,  // 加了命名空间启用的功能后，映射更方便。
  state: {
    userInfo: "wqw",
    email: '1341234@qq.com'
  },
  actions: {
    editEmail({ commit }, payload) {
      commit('editEmail', payload)
    }
  },
  mutations: {
    editEmail(state, payload) {
      state.email = payload
    }
  }
}